<?php
/**
 * Created by PhpStorm.
 * User: ASUS
 * Date: 2019/10/31
 * Time: 9:58
 */

namespace App\Model;


use Illuminate\Database\Eloquent\Model;

class Location extends Model
{
    protected $primaryKey = 'location_id';

    protected $guarded = [];

    public function user(){
        return $this->belongsTo(User::class,'user_id','user_id');
    }

}